home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / September 93.iso / Archives / Applications / Commercial Addons / Filemaker / AE & FileMaker / DIAL.TXT next >
Encoding:
Text File  |  1993-08-06  |  2.6 KB  |  58 lines  |  [TEXT/CIM ]

  1. The following describes how I created a phone dialer in FileMaker Pro on the Mac using AppleEvents and the following utilities:
  2.  
  3.    QuickKeys II (CE Software, commercial product)
  4.    Dialer (MacAVen forum, library 14, DIALER.SIT, shareware, $15)
  5.    CloseModem (Communications forum, library 4, CLOSEM.SIT, freeware)
  6.  
  7. 1. Create a QuickKey sequence called Dial Clipboard in the Universal
  8.    Keyset:
  9.  
  10.    Alias: Command-C (copy what's selected into clipboard)
  11.    File: Dialer (execute Dialer DA or application)
  12.    Message: "Release Now" (Check "Show OK button" and "Continue
  13.                            automatically after 10 seconds" - this
  14.                            is optional)
  15.    Alias: Command-W (Closes Dialer window and process)
  16.    File: CloseModem (Executes application to close modem properly,
  17.                      something Dialer DOESN'T do until the long-
  18.                      awaited Next Release)
  19.  
  20.    This QuickKey can be used independently of FM Pro if you put it
  21.    on the QuickKeys menu and/or give it a keyboard command. It will
  22.    dial whatever is selected in whatever application and dial it.
  23.  
  24.    The function of the message is to allow Dialer to function, then
  25.    cut it off after 10 seconds, assuming you've picked up the phone
  26.    by then. You can cut it off immediately (even in mid-dial) by
  27.    hitting the button or hitting "return".
  28.  
  29. 2. Create a two-command script in FileMaker Pro (see file FMAEDL.TXT
  30.    for FM Pro versions before 2.0v4):
  31.  
  32.    Copy (Select,"field_name")
  33.         This selects the field you specify, presumably the one with
  34.         a number in it, and copies it to the clipboard. Note: the
  35.         Command-C alias in the QuickKey has no effect.
  36.    Send Apple Event ("QKy2","QPNm","CEIAC")
  37.         This is created by specifying the "select" button. Choose
  38.         "Other" from the top pull-down menu in the dialog window
  39.         and fill in Event Class QKY2 and Event ID QPNm". Then click
  40.         the Script Text button and fill in the QuickKey name: Dial
  41.         Clipboard". Finally, Click the "Specify Application" button
  42.         and choose CEIAC from the Extensions folder in the System
  43.         folder.
  44.  
  45. 3. Create a button (optional)
  46.  
  47.    I create a button that I place next to the field with the phone
  48.    number in it, put the text "Dial" in it, and define it to execute
  49.    the script prepared in 2. above. For instance, if the field is
  50.    "Home Phone", I use that name in the script, name the script "Dial
  51.    Home" and have the button execute it.
  52.  
  53. This has worked like a charm since I discovered CloseModem and figured
  54. out the AppleEvent commands by extensive trial and error (before reading
  55. FMAEDL.TXT).
  56.  
  57. Comments? Send to me, Dave Ressler, at 70403,3665.
  58.